{include file="$usertemplate/header.tpl.html" title=header}
<div class="content"> {include file="$usertemplate/left.tpl.html" title=left}
    <div class="cont_right"> {if $productcateItems}
        {foreach from=$productcateItems key=i item=productcatItem}
        <div class="boxRight">
            <div class="TshowPic">
                <p> <a href="{$productcatItem->getUrl($lang)}" title="{$productcatItem->getName($lang)}"> {$productcatItem->getName($lang)}</a></p>
            </div>
            <!--End .TshowPic-->
            {assign var=pid value=$productcatItem->getId()}
                                {assign var=listpid value=$procategories->getSubCategory1($pid)}
                                
                                {assign var=subproItems value=$products->getObjects(1,"status=1 AND category in ($listpid) ",$orderby,'')}
        {if $subproItems}
            <div class="c_boxRight">
                <div class="sanphamrong">
                    <div id="show{$i+1}"> <a class="next"></a> <a class="prev"></a>
                        <div class="show{$i+1}">
                            <ul>
                                
                                {foreach from=$subproItems item=subproItem}
                                <li>
                                    <div class="want-sp">
                                        <table cellspacing="0" cellpadding="0" width="100%">
                                            <tbody>
                                                <tr>
                                                    <td class="Fproduct-Kimg"><a href="{$subproItem->getViewUrl($lang)}" title="{$subproItem->getName('vn')}" style="width:166px;"><img src="{$ROOTPATH}/gallery/avatar_upload/products/avatar/{$subproItem->getAvatar()}" alt="{$subproItem->getName('vn')}"/></a></td>
                                                </tr>
                                            </tbody>
                                        </table>
                                    </div>
                                    <p>{$subproItem->getName('vn')}</p>
                                </li>
                                {/foreach}
                                
                            </ul>
                        </div>
                    </div>
                </div>
                <!--End .sanphamrong--> 
            </div>
            <!--End .c_boxRight--> 
         {/if}   
        </div>
        {/foreach}
        {/if} </div>
</div>
{include file="$usertemplate/footer.tpl.html" title=footer} 